#include "mainwidget.h"
#include "model/data.h"
#include "loginwidget.h"
#include "debug.h"
#include "model/datacenter.h"

#include <QApplication>
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

#if TEST_SKIP_LOGIN
    // 单例模式构造函数私有化
    MainWidget* w = MainWidget::getInstance();
    w->show();
#else
    LoginWidget* loginWidget = new LoginWidget(nullptr);
    loginWidget->show();
#endif

    // // 临时测试
    // model::DataCenter* dataCenter = model::DataCenter::getInstance();
    // dataCenter->initDataFile();
    // dataCenter->saveDataFile();

#if TEST_NETWORK
    // network::NetClient netClient(nullptr);
    // netClient.ping();
    model::DataCenter* dataCenter = model::DataCenter::getInstance();
    dataCenter->ping();
#endif

    return a.exec();
}
















